package com.hibuy.pc.service.shiro;

import com.hibuy.pc.model.shiro.Permission;
import com.hibuy.pc.model.shiro.Role;
import com.hibuy.pc.model.shiro.User;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * Created by admin on 2017/12/27.
 */
public interface PermissionService {
    User findByUserEmail(String email);

    Set<String> getRolesName(Integer userId);

    List<Role> getRoleList(Integer userId);

    Collection<String> getPermissionsName(Integer roleId);

    List<Permission> getPermissions();

    Permission addPermission(Permission permission);
}
